<?php 

/**
 * Joomla! 1.5 component arts_curriculum
 * @package    arts_curriculum
 * @subpackage
 * @author     Chris Borkowski {@link http://www.guggenheim.org}
 * @author     Created on 31-August-2009
 */
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );


jimport( 'joomla.application.component.controller' );
require_once( JPATH_COMPONENT.DS.'helpers'.DS.'helper.php' );

 /**
  * Arts_curriculum Component Controller
  *
  * @package Arts_curriculum
  */

  class arts_curriculumController extends JController
  {
		/**
		 * Method to show a arts_curriculum view
		 */
		function display()
		{
			 // Set a default view if none exists
			 if ( ! JRequest::getCmd( 'view' ) ) {
					JRequest::setVar('view', 'categories' );
			 }
		  	 //update the hit count for the item
  		  	 if(JRequest::getCmd('view') == 'item')
  			 {
  				$model =& $this->getModel('item');
  				$model->hit();
 			 }
 		parent::display();
  		}
  }